package com.wk1un2.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_messages")
public class Messages {
	@TableId(type = IdType.AUTO)
	private Integer mesid;
	private Integer messender;
	private Integer mesreceiver;
	private String mescontent;
	private String messtate;
	private Integer messtuid;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date messendtime;
	private String mesremarks;
	
	@TableField(exist = false)
	private String stuname;
	
	@TableField(exist = false)
	private String username;
	
	@TableField(exist = false)
	private String jieshouzhe;
	
	@TableField(exist = false)
	private String fasongzhe;
	
	@TableField(exist = false)
	private String senderName;
	
	@TableField(exist = false)
	private String receiverName;
}
